package com.chunuo.eduservice.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chunuo.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chunuo.eduservice.entity.frontvo.CourseFrontVo;
import com.chunuo.eduservice.entity.frontvo.CourseWebVo;
import com.chunuo.eduservice.entity.vo.CoursePublishVo;
import com.chunuo.eduservice.entity.vo.CourseQuery;
import com.chunuo.eduservice.entity.vo.EduCourseVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author testjava
 * @since 2020-07-04
 */
public interface EduCourseService extends IService<EduCourse> {

    String saves(EduCourseVo eduCourseVo);

    EduCourseVo info(String id);

    String updates(EduCourseVo eduCourseVo);

    CoursePublishVo getPublihCourseInfo(String id);

    IPage<EduCourse> findAll(Integer page, Integer limit, CourseQuery query);

    void delete(String id);

    List<EduCourse> popularCourse();

    Map<String, Object> pageQueryCourse(Page<EduCourse> eduCoursePage, CourseFrontVo courseFront);

    CourseWebVo getBaseCourseInfo(String courseId);
}
